rust(feat): user defined function MCP tools - #739
Merged
evan-sift merged 8 commits intoAug 27, 2026
Conversation
evan-sift
force-pushed
the
rust/mcp-preview-rule
branch
from
August 26, 2026 07:56
505de4d to
c49576a
Compare
evan-sift
force-pushed
the
rust/mcp-user-defined-functions
branch
from
August 26, 2026 07:56
269943c to
10cd137
Compare
evan-sift
force-pushed
the
rust/mcp-preview-rule
branch
from
August 26, 2026 08:20
c49576a to
ac9064e
Compare
evan-sift
force-pushed
the
rust/mcp-user-defined-functions
branch
from
August 26, 2026 08:20
10cd137 to
d23b02f
Compare
evan-sift
marked this pull request as ready for review
August 26, 2026 08:21
lineville
requested changes
Aug 27, 2026
lineville
left a comment
Contributor
There was a problem hiding this comment.
Looking good mostly, I think the one issue to be fixed is with the user_notes being potentially overwritten with empty values.
evan-sift
force-pushed
the
rust/mcp-preview-rule
branch
from
August 27, 2026 04:40
ac9064e to
bda5135
Compare
evan-sift
force-pushed
the
rust/mcp-user-defined-functions
branch
from
August 27, 2026 04:40
1d4b281 to
57dbeaf
Compare
…e names like the backend
evan-sift
force-pushed
the
rust/mcp-preview-rule
branch
from
August 27, 2026 19:20
bda5135 to
f09118b
Compare
evan-sift
force-pushed
the
rust/mcp-user-defined-functions
branch
from
August 27, 2026 19:20
57dbeaf to
1c714d8
Compare
Co-authored-by: Liam Neville <liam@siftstack.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a
user_defined_functionsdomain to the MCP server.Tool surface:
list_user_defined_functions,list_user_defined_function_versions,create_user_defined_function,update_user_defined_function,archive_user_defined_function,unarchive_user_defined_function.Function inputs ride in
function_inputs_json, a documented JSON string parameter. Updates are mask-only and create a new version; anamechange applies alone per the API's semantics, so the tool rejectsnamecombined with other fields.Surface note: there is no dedicated archive RPC. The public API archives a user-defined function by setting the archive field through the update mask.
archive_user_defined_functionandunarchive_user_defined_functionare exposed as separate tools anyway, so an agent does not have to know that, and so each can carry a destructive write gate.The list tools carry the crate's
fieldsprojection and reportcount/has_more.Stack note: the bundled agent skill and the 0.5.0 changelog for this whole stack land at the tip (#763).
Verification
cargo test -p sift_mcpon this branch: 411 passed, 0 failed (pagination, mask construction, no stale version echo, archive/unarchive shape, write gates, input validation, fields projection and count).